package com.example.flshtarvel.mapper;

import com.example.flshtarvel.entity.ImageArticleMap;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ImageArticleMapMapper {

    @Insert("insert  into image_article_map(image_id,article_id) values(#{imageId},#{articleId})")
    public int insertImageMessageMap(ImageArticleMap imageMessageMap);

    @Delete("delete from image_article_map where image_id=#{imageId} and article_id=#{articleId}")
    public int deleteImageMessageMap(ImageArticleMap imageArticleMap);
}
